|
Foxit PDF SDK
|
Public Member Functions | |
| def | AccessibilityChecker (other) |
| Constructor, with another checker object. More... | |
| def | CanCheck () |
| Check whether the current PDF document can be full checked. More... | |
| def | ChangeCheckStateInResultTree (root_data, sub_item_data, new_check_state) |
| Change check state in result tree. More... | |
| def | GetTagTreeNodeIDByCheckResultItemID (page_index, item_id) |
| Get tag tree node ID by check result item ID. More... | |
| def | IsEmpty () |
| Check whether current object is empty or not. More... | |
| def | RecheckResult (check_options, root_data) |
| Recheck by result root. More... | |
| def | RemoveSkippedStateInResultTree (check_options, root_data, sub_item_data) |
| Remove skipped state in result tree. More... | |
| def | StartCheck (check_options, report_callback, provider, pause) |
| Start check for accessibility. More... | |
| def | UpdateCheckResultReport () |
| Update check result report. More... | |
| def | UpdateCheckState (rule_type, check_state) |
| Update check state for a specified rule. More... | |
This class represents an accessibility checker for a PDF document: run the full accessibility check, re-check parts of the result tree, change / remove check states and update the check result report. Before using any class or methods in this module, please ensure Foxit PDF SDK has been initialized successfully by function FoxitPDFSDKPython2.Library.Initialize with a key including "Accessibility" module.
| def FoxitPDFSDKPython2.AccessibilityChecker.AccessibilityChecker | ( | other | ) |
Constructor, with another checker object.
Constructor.
| [in] | other | Another checker object. |
| [in] | pdf_doc | A valid PDF document object. |
| def FoxitPDFSDKPython2.AccessibilityChecker.CanCheck | ( | ) |
Check whether the current PDF document can be full checked.
| def FoxitPDFSDKPython2.AccessibilityChecker.ChangeCheckStateInResultTree | ( | root_data, | |
| sub_item_data, | |||
| new_check_state | |||
| ) |
Change check state in result tree.
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data. |
| [in] | new_check_state | The new check state. |
| def FoxitPDFSDKPython2.AccessibilityChecker.GetTagTreeNodeIDByCheckResultItemID | ( | page_index, | |
| item_id | |||
| ) |
Get tag tree node ID by check result item ID.
| [in] | page_index | The page index. |
| [in] | item_id | The check result item ID. |
| def FoxitPDFSDKPython2.AccessibilityChecker.IsEmpty | ( | ) |
Check whether current object is empty or not.
When the current object is empty, that means current object is useless.
| def FoxitPDFSDKPython2.AccessibilityChecker.RecheckResult | ( | check_options, | |
| root_data | |||
| ) |
Recheck by result root.
Recheck by sub item.
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data of check result tree. |
| def FoxitPDFSDKPython2.AccessibilityChecker.RemoveSkippedStateInResultTree | ( | check_options, | |
| root_data, | |||
| sub_item_data | |||
| ) |
Remove skipped state in result tree.
| [in] | check_options | The check options. |
| [in] | root_data | The root data of check result tree. |
| [in] | sub_item_data | The sub item data. |
| def FoxitPDFSDKPython2.AccessibilityChecker.StartCheck | ( | check_options, | |
| report_callback, | |||
| provider, | |||
| pause | |||
| ) |
Start check for accessibility.
| [in] | check_options | The check options. Please refer to AccessibilityCheckOptions . |
| [in] | report_callback | A stream callback object for report output. This can be null. |
| [in] | provider | An AccessibilityCheckResultsCallback object for check results. |
| [in] | pause | A pause object. This can be null. |
| def FoxitPDFSDKPython2.AccessibilityChecker.UpdateCheckResultReport | ( | ) |
Update check result report.
| def FoxitPDFSDKPython2.AccessibilityChecker.UpdateCheckState | ( | rule_type, | |
| check_state | |||
| ) |
Update check state for a specified rule.
| [in] | rule_type | The check rule type. Please refer to values starting from FoxitPDFSDKPython2.e_RuleTypeDocPermission and this should be one of these values. |
| [in] | check_state | The check state. Please refer to values starting from FoxitPDFSDKPython2.e_CheckStateNone and this should be one of these values. |